<?php $this->beginContent('/layouts/main');?>

				<div id="main">				
					 <hr class="clearfix" />
	        	    <?php if(isset($this->breadcrumbs)):?>
						<?php $this->widget('ext.jbreadcrumbs.jbreadcrumbsWidget',array(
								'links'=>$this->breadcrumbs
						));?>
					<?php endif;?>
					<hr class="clearfix" />				
					<?php echo $content;?>
				</div>
				<div id="sidebar">
					<input type="text" value="Search" default-value="Search" class="search" />
				           
				 	<?php if (!Yii::app()->user->isGuest):?>
					<?php $this->widget('application.components.panels.QuickPanel',array(
							'route'=>$this->id
						));?>
					<?php else:?>
					<div class="widget">
						<h5>用户登录</h5>
						
						<?php $this->widget('ext.login.loginWidget',array(
									'view'=>'theme/light/login'
								));?>				
					</div>

					<?php endif;?>

			            <!-- Blog Categories -->
			            <div class="widget" id="categories">
			                <h5>实验类别</h5>					
							<?php		
								echo UtilTree::generateTree(Category::model()->getMenuByType(Category::CATEGORY_LAB),0,'/labs/list',array('class'=>'categories'));
							?>
			            </div>
			            <!-- /Blog Categories -->
			            
			            <!-- Text Widget -->
			            <div class="widget">
			                <h5>常用标签</h5>
			                <p><?php echo Tag::model()->generateTagsCloud(Category::CATEGORY_LAB,30,'/labs/tags');?></p>
			            </div>
			            <!-- /Text Widget -->
				</div>
				
<?php $this->endContent();?>